import request from '@/utils/request'

export function listData(query) {
    return request({
        url: '/food/supplier/list',
        method: 'get',
        params: query
    })
}

export function getData(dictCode) {
    return request({
        url: '/food/supplier/list/' + dictCode,
        method: 'get'
    })
}


export function addData(data) {
    return request({
        url: '/food/supplier',
        method: 'post',
        data: data
    })
}

export function updateData(data) {
    return request({
        url: '/food/supplier',
        method: 'put',
        data: data
    })
}

export function delData(dictCode) {
    return request({
        url: '/food/supplier/' + dictCode,
        method: 'delete'
    })
}